package net.ermannofranco.genericdaojdbc.clause;

import net.ermannofranco.genericdaojdbc.util.NullEnum;
import net.ermannofranco.genericdaojdbc.util.Util;

public final class NullityClause extends OneClause {

	private final NullEnum nullity;

	protected NullityClause(String propName, NullEnum nullity) {
		super(propName);
		this.nullity = nullity;
	}

	@Override
	public String getDiscriminator() {
		return nullity.getVal();
	}

	@Override
	public boolean requiresNamedParam() {
		return false;
	}

	@Override
	public Object getValue() {
		return Util.EMPTY_STR;
	}
}
